# Copyright (c) OpenMMLab. All rights reserved.

from mmengine.registry import MODELS as MMCV_MODELS
from mmengine.registry import Registry

MODELS = Registry('models', parent=MMCV_MODELS)

LOSSES = MODELS


def build_loss(cfg):
    """Build loss."""
    return LOSSES.build(cfg)
